<div ng-include="'web/include/header_menu.html'"></div>
<!--主体内容-->
<div class="content row" >
    <div class="my-main">
        <!--右侧表格-->
        <div class="right-main">
            <div class="col-sm-12 groupBtn">
                <button type="button" class="btn btn-info"  data-toggle="modal"  data-target="#addForm" zg-access="tenans/addTenan">新增租户</button>
                <button type="button" class="btn btn-info" ng-click="deleteTenan()" zg-access="tenans/deleteTenan">删除租户</button>
                <button type="button" class="btn btn-info" ng-click="setCode()" zg-access="tenanproperty/gettenanProperty">设置属性</button>
            </div>
            <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="tenanTable" style="width:100%">
                <thead>
                <tr>
                    <td>请选择</td>
                    <td>租户ID</td>
                    <td>租户名称</td>
                    <td>租户代码</td>
                    <td>存储空间</td>
                    <!--<td>操作</td>-->
                </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
            <!--确认删除用户的弹框-->
            <div class="modal fade bd-example-modal-sm" id="deleteSure" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"  data-backdrop="static">
                <div class="modal-dialog modal-sm">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title">删除用户</h4>
                        </div>
                        <div class="modal-body">
                            <p>您确认删除该用户吗？</p>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" ng-click="sureDelete()">确定</button>
                        </div>
                    </div>
                </div>
            </div>
            <!--设置属性的弹框-->
            <div class="modal fade bd-example-modal-md" id="set" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"  data-backdrop="static">
                <div class="modal-dialog modal-md">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title">设置属性</h4>
                        </div>
                        <div class="modal-body">
                            <table class="table text-center table-bordered" id="codeTable">
                                <thead>
                                <tr>
                                    <td>属性</td>
                                    <td>值</td>
                                </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" ng-click="sureCode()">确定</button>
                        </div>
                    </div>
                </div>
            </div>
            <!--//新建公司的弹框-->
            <div class="modal fade bd-example-modal-lg" id="addForm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"  data-backdrop="static">
                <div class="modal-dialog modal-lg">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title">新增租户</h4>
                        </div>
                        <div class="modal-body">
                            <form class="form-horizontal" id="addMsg" ng-hide="result">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">租户名称</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" placeholder="请输入租户名称" ng-model="tenanname"  minlength="1" maxlength="255">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">租户CODE</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" ng-model="tenancode" placeholder="请输入租户CODE（不能为汉字）" minlength="4" maxlength="255">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label  class="col-sm-2 control-label">存储空间</label>
                                    <div class="col-sm-3 box-storage">
                                        <input type="number" class="form-control" ng-model="storage" placeholder="请输入存储空间(数字)" minlength="0" maxlength="11">

                                    </div>
                                    <div class="col-sm-5 box-storage">
                                        <span class="bite">M</span>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="reset" class="btn btn-default" ng-click="close()">取消</button>
                                    <button type="button" class="btn btn-primary" ng-click="sureTenan()">确定</button>
                                </div>
                            </form>

                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--尾部-->
<div ng-include="'web/include/footer.html'"></div>